package com.ruoyi.common.base.enums;


import com.ruoyi.common.base.vo.ComKeyValueVo;

import java.util.ArrayList;
import java.util.List;

/**
 * 岩层枚举
 *
 * @author gu
 */
public enum LithologicNameEnum {
    CoarseConglomerate("1", "粗砾岩"),//100
    CONGLOMERATE("2", "砾岩"),//200
    MICROCONGLOMERATE("3", "细砾岩"),//300
    GRITSTONE("4", "粗砂岩"),//500
    MEDIUMSANDSTONE("5", "中砂岩"),
    FINESANDSTONE("6", "细砂岩"),
    SILTSTONE("7", "粉砂岩"),
    CLAYSTONE("8", "粘土岩");
    private final String code;
    private final String type;

    LithologicNameEnum(String code, String type) {
        this.code = code;
        this.type = type;
    }

    public static List<ComKeyValueVo> getArmTypeEnumList() {
        ArrayList<ComKeyValueVo> armTypeEnumList = new ArrayList<>();
        for (LithologicNameEnum armTypeEnum : LithologicNameEnum.values()) {
            ComKeyValueVo armTypeEnumVo = new ComKeyValueVo();
            armTypeEnumVo.setKey(armTypeEnum.code);
            armTypeEnumVo.setValue(armTypeEnum.type);
            armTypeEnumList.add(armTypeEnumVo);
        }
        return armTypeEnumList;
    }

    public String getCode() {
        return code;
    }

    public String getType() {
        return type;
    }
}
